package Ar;

import java.util.Arrays;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class ArSort {
    public static void main(String[] args) {
        int[] ar = {21,31,52,11,5,88};
        Arrays.sort(ar);
        System.out.println(Arrays.toString(ar));


        int[] nums = {31,43,11,23,55,88};
        int[] newArr = Arrays.copyOf(nums,5);
        System.out.println(Arrays.toString(newArr));
    }
}
